package com.cq.hd.member.controller;

import com.alibaba.fastjson.JSONObject;
import com.cq.hd.common.response.Result;
import com.cq.hd.common.response.ResultGenerator;
import com.cq.hd.member.api.HfMerchantCallbackApi;
import com.cq.hd.member.biz.HfMerchantCallbackBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HfMerchantCallbackController implements HfMerchantCallbackApi {

    @Autowired
    private HfMerchantCallbackBiz hfMerchantCallbackBiz;

    @Override
    public Result<Boolean> merchantEntAuditCallback(@RequestBody JSONObject dataObj) {
        return ResultGenerator.success(hfMerchantCallbackBiz.merchantEntAuditCallback(dataObj));
    }

    @Override
    public Result<Boolean> merchantOpenAuditCallback(@RequestBody JSONObject dataObj) {
        return ResultGenerator.success(hfMerchantCallbackBiz.merchantOpenAuditCallback(dataObj));
    }

    @Override
    public Result<Boolean> merchantOpenBusinessCallback(@RequestBody JSONObject dataObj) {
        return ResultGenerator.success(hfMerchantCallbackBiz.merchantOpenBusinessCallback(dataObj));
    }

    @Override
    public Result<Boolean> merchantSettleConfigAuditCallback(@RequestBody JSONObject dataObj) {
        return ResultGenerator.success(hfMerchantCallbackBiz.merchantSettleConfigAuditCallback(dataObj));
    }

    @Override
    public Result<Boolean> merchantEntIndvAuditCallback(@RequestBody JSONObject dataObj) {
        return ResultGenerator.success(hfMerchantCallbackBiz.merchantEntIndvAuditCallback(dataObj));
    }

    @Override
    public Result<Boolean> wxBusinessConfigCallback(@RequestBody JSONObject dataObj) {
        return ResultGenerator.success(hfMerchantCallbackBiz.wxBusinessConfigCallback(dataObj));
    }
}
